<?php

include '/opt/lampp/htdocs/xampp/sportsManager/ConexionBD/BaseDeDatos.php';

$nombre = $_POST["nombre"];
$apellido = $_POST["apellido"];

$baseDeDatos = BaseDeDatos::getInstance();
$conexion = $baseDeDatos->conectar();


$result = mysqli_query($conexion, "SELECT * FROM Usuario");

while ($row = mysqli_fetch_array($result)) {
    echo $row['Nombre'] . " " . $row['Apellidos'];
    echo "<br>";
}

?>